Python wagtail wagtail core model














































Python wagtail wagtail core model



 In the previous article we explored the wagtail page model and its example .If you haven't gone through that,then please click on this link  wagtail page models
In this article we will explore different types of model class inside wagtail core model.    
  Different type of model class inside wagtail core model

1) Page        
  •  Database fields under classwagtail.core.models.Page 
  1.  title
  2. draft_title
  3. slug
  4. content_type
  5. live
  6. has_unpublished_changes
  7. locked
  8. owner
  9. first_published_at
  • Methods and properties under classwagtail.core.models.Page  
  1. specific
  2. specific_class
  3. full_url
  4. get_site()
  5. relative_url(current_siterequest=None)
  6. preview_modes
2)   
Site
  

  • Database fields under classwagtail.core.models.Site
  1. hostname
  2. port
  3. root_page
  4. is_default_site

  • Methods and properties under wagtail.core.models.Site
  1. root_url
  2. staticfind_for_request(request)
  3. staticget_site_root_paths()

3PageRevision

  
  • Database fields under classwagtail.core.models.PageRevision
  1. page
  2. submitted_for_moderation
  3. created_at
  4. user 
  5. content_json  
  • Methods and properties under classwagtail.core.models.PageRevision
  1. as_page_object()
  2. approve_moderation()
  3. reject_moderation()
  4. is_latest_revision()
  5. publish()

More Articles of SAYENDEEP MAHANTY:

Name Views Likes
C++ Exception Handling-|| 85 3
C++ Exception Handling 116 3
C++ File Handling EOF 93 5
C++ File Handling Error Handling During file Operation 1135 5
C++ File Handling seekp() Function 105 5
C++ File Handling seekg() Function 105 6
C++ File Handling tellg() Function 127 5
C++ File Handling tellp() Function 133 5
C++ File Handling close() Function 78 5
C++ File Handling:: open() 106 5
C++ File Handling Introduction 131 5
C++ Container Library:: std ::array-II 101 4
Top Django Interview Questions and Answers You Need to Know 302 6
C++ Container Library::std::array 96 6
C++ Container Library Introduction 103 5
Essential Engineering Skills for Your Resume 127 5
Mistakes To Avoid During Technical Interview 133 5
Mistakes You Must Avoid During Work From Home 178 6
Seven Common Mistakes that Beginners Should Avoid While Learning to Code 109 6
Simple Linear Regression 96 6
Python wagtailmenus 122 6
Python wagtail application 119 6
Python guppy GSL 136 5
Python wagtail guppy subpackage heapy 174 6
Python guppy Introduction 215 6
Python wagtail Structural Block 258 6
Python wagtail Integrating into Django Project 370 6
Python wagtail testing 280 7
Python wagtail Basic Block 349 7
Python wagtail image tag 216 7
Python wagtail Templates 179 6
Python wagtail Backends 206 6
Python wagtail Indexing 190 6
Python wagtail Search 173 7
Python wagtail Snippets 192 6
Python wagtail Writing your own page models 165 9
Python wagtail model class PageRevision 196 10
Python wagtail model class Site 198 9
Python wagtail wagtail core model 219 9
Python wagtail page models 189 10
Python wagtail 166 11

Comments